<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>查询成功</title>
</head>
<body>
<style>
    table, table tr th, table tr td {
        border: 1px solid #0094ff;
    }

</style>
<table align="center">
    <tr>
        <td>商品编号</td>
        <td>商品名称</td>
        <td>订单状态</td>
        <td>商品区域</td>
        <td>商品价格</td>
        <td>库存数量</td>
        <td>创建时间</td>
    </tr>
    <tr th:each="list : ${byGoodsDistrict}">
        <td th:text="${list.id}"></td>
        <td th:text="${list.goodsName}"></td>
        <!--        用模板if标签判断，等于对应编号时显示td标签内容-->
        <td th:if="${list.billStatus}==0">待处理</td>
        <td th:if="${list.billStatus}==1">处理中</td>
        <td th:if="${list.billStatus}==2">已处理</td>

        <td th:if="${list.goodsDistrict}==1">朝阳</td>
        <td th:if="${list.goodsDistrict}==2">海淀</td>
        <td th:if="${list.goodsDistrict}==3">丰台</td>
        <td th:if="${list.goodsDistrict}==4">西城</td>
        <td th:if="${list.goodsDistrict}==5">昌平</td>
        <td th:if="${list.goodsDistrict}==0">无</td>
        <td th:text="${list.goodsPrice}"></td>
        <td th:text="${list.goodsCount}"></td>
        <td th:text="${list.creationTime}"></td>
    </tr>
</table>
<table align="center">
    <tr>
        <td>
            <a href="/index">区域订单查询</a>
        </td>
        <td>
            <a href="/add">添加商品</a>
        </td>
    </tr>
</table>
</body>
</html>